
import React, { Component } from 'react'
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'
import Layout from './pages/layout/index'
import Login from './pages/login/index'
import AuthRoute from 'components/authRoute'

export default class app extends Component {
    render() {
        return (
            <Router>
                <Switch>
                    <Route path="/login" component={Login} />
                    {/* <Route path="/" component={Layout} /> */}
                    <AuthRoute path="/" component={Layout} />
                </Switch>
            </Router>
        )
    }
}
